<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<head>
	<sx:head cache="false" />
	<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css" type="text/css" />
	<link rel="stylesheet" href="/hrs-intranet/styles/errortag.css" type="text/css" />
</head>

<s:if test="hasFieldErrors()">
	<div class="oldErrorMsg">
		<h4 class="oldErrorTitle">Error(s) with submission:</h4>
		<s:iterator value="fieldErrors">
			<s:iterator value="value">
				<li>
					<font class="errorMsgFont">
						<s:property/>
					</font>
				</li>
			</s:iterator>
		</s:iterator>
	</div>
	<br/>
	<br/>
</s:if>

<div style="width: 100%; ">
	<display:table name="reportsList" requestURI="TimeOffReportAction" class="listable" cellpadding="0" cellspacing="0" decorator="com.hexacta.hrs.web.util.TimeOffReportDecorator" style="width: 100%; ">
	  <display:column property="first" title="Report Name"/>
	  <display:column property="second"  title="Report Details"/>
	  <display:column property="timeOffLink" title="Filter" style="text-align: center; "/>
	  <s:url id="pdf_action" action="TimeOffReportAction_exportToPDF" />
	  <display:column value="Export" href="${pdf_action}" paramId="reportName" paramProperty="first" title="PDF" style="text-align: center; "/>
	  <s:url id="xls_action" action="TimeOffReportAction_exportToExcel" />
	  <display:column value="Export" href="${xls_action}" paramId="reportName" paramProperty="first" title="Excel" style="text-align: center; "/>
	</display:table>
</div>

